package com.tc.zigbee.mt.income;

import com.tc.util.DataUtil;

//	Byte: 1  		1 			1			2			2		8			1
//	Length = 0x0D Cmd0 = 0x45 Cmd1 = 0xC1	SrcAddr	NwkAddr	IEEEAddr	Capabilites
public class DeviceAnnounceIndication extends IncomeMessage{
	short srcAddr;
	short nwkAddr;
	long ieeeAddr;
	byte capabilities;
	
	public short getSrcAddr() {
		return srcAddr;
	}

	public short getNwkAddr() {
		return nwkAddr;
	}

	public long getIeeeAddr() {
		return ieeeAddr;
	}

	public byte getCapabilities() {
		return capabilities;
	}

	public DeviceAnnounceIndication(byte[] data){
		srcAddr = DataUtil.shortValue(data, 0);
		nwkAddr = DataUtil.shortValue(data, 2);
		ieeeAddr = DataUtil.longValue(data, 4);
		capabilities = data[12];
	}
}
